package top.kaoshanji.q1ch07a.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.core.type.filter.RegexPatternTypeFilter;

import java.util.regex.Pattern;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/25 10:21
 */
@Configuration
@ComponentScan(basePackages={"top.kaoshanji.q1ch05a"},
        excludeFilters={
                @ComponentScan.Filter(type= FilterType.CUSTOM, value= RootConfig.WebPackage.class)
        })
public class RootConfig {

    public static class WebPackage extends RegexPatternTypeFilter {
        public WebPackage() {
            super(Pattern.compile("top.kaoshanji.q1ch07a\\.web"));
        }
    }

}
